class AddWorldsUsers < ActiveRecord::Migration
  def self.up
    create_table :worlds_users, :id => false do |t|
      t.column :world_id, :integer
      t.column :user_id, :integer
    end
    add_index :worlds_users, "world_id"
    add_index :worlds_users, "user_id"
  end

  def self.down
    drop_table :worlds_users
  end
end
